<header class="app-header navbar Noprint">
    <button class="navbar-toggler d-lg-none" type="button" appMobileSidebarToggler>&#9776;</button>
    <a class="navbar-brand"></a>
    <ul class="nav navbar-nav d-md-down-none">
        <li class="nav-item">
            <a class="nav-link navbar-toggler" href="#" appSidebarToggler>&#9776;</a>
        </li>
    </ul>
    <ul class="nav navbar-nav ml-auto">

        <li *ngIf="checkPermissions('message')">
            <a routerLinkActive="active" [routerLink]="['/message/index']" style="position: relative" class="nav-link"
               href="#"><i class="fa fa-bell-o"></i>意见反馈<span *ngIf="isShowMsgPoint"
                                                              style="display: inline-block;position: absolute;width: 5px;height: 5px;background-color: red;border-radius: 50%;left: 8px;top: 12px;"></span></a>
        </li>
        <li class="nav-item dropdown" dropdown (onToggle)="toggled($event)">
            <a href class="nav-link dropdown-toggle" dropdownToggle (click)="false">
                <img src="assets/img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
                <span class="d-md-down-none">{{userName}}</span>
            </a>

            <div class="dropdown-menu dropdown-menu-right" *dropdownMenu aria-labelledby="simple-dropdown">

                <div class="dropdown-header text-center"><strong>操作</strong></div>
                <a class="dropdown-item" href="#" (click)="signOut()"><i class="fa fa-cog"></i> 退出登录<span
                        class="badge badge-warning"></span></a>

                <!--<div class="dropdown-header text-center"><strong>Settings</strong></div>-->

                <!--<a class="dropdown-item" href="#"><i class="fa fa-user"></i> Profile</a>-->
                <!--<a class="dropdown-item" href="#"><i class="fa fa-wrench"></i> Setting</a>-->
                <!--<a class="dropdown-item" href="#"><i class="fa fa-usd"></i> Payments<span class="badge badge-default">42</span></a>-->
                <!--<a class="dropdown-item" href="#"><i class="fa fa-file"></i> Projects<span class="badge badge-primary">42</span></a>-->
                <!--<div class="divider"></div>-->
                <!--<a class="dropdown-item" href="#"><i class="fa fa-shield"></i> Lock account</a>-->
                <!--<a class="dropdown-item" href="#"><i class="fa fa-lock"></i> Logout</a>-->
            </div>
        </li>
        <li class="nav-item d-md-down-none">
            <!--<a class="nav-link navbar-toggler" href="#" appAsideMenuToggler>&#9776;</a>-->
        </li>
    </ul>
</header>

<div class="app-body">
    <div class="sidebar Noprint">
        <nav class="sidebar-nav">
            <ul class="nav">
                <!--这里设置侧边导航栏 li代表每一个-->
                <!--一级菜单 用户管理-->
                <li class="nav-item" *ngIf="checkPermissions('users')">
                    <a class="nav-link" routerLinkActive="active" [routerLink]="['/users/index']"><i
                            class='icon-user'></i>用户管理</a>
                </li>

                <!--一级菜单 活动管理-->
                <li class="nav-item" *ngIf="checkPermissions('activity')">
                    <a class="nav-link" routerLinkActive="active" [routerLink]="['/activity/index']"><i
                            class='icon-puzzle'></i>活动管理</a>
                </li>

                <!--一级主菜单  充值管理-->
                <li class="nav-item nav-dropdown" *ngIf="checkPermissions('recharge-record')">
                    <a class="nav-link " routerLinkActive="active" [routerLink]="['/recharge-record/index']"><i
                            class="icon-speech"></i>充值管理</a>
                </li>

                <!--一级主菜单  提现管理-->
                <li class="nav-item nav-dropdown" *ngIf="checkPermissions('withdrawals')">
                    <a class="nav-link " routerLinkActive="active" [routerLink]="['/withdrawals/index']"><i
                            class="icon-speech"></i>提现管理</a>
                </li>

                <!--一级主菜单  消息管理-->
                <li class="nav-item" *ngIf="checkPermissions('message')">
                    <a class="nav-link" routerLinkActive="active" [routerLink]="['/message/index']"><i
                            class="icon-speech"></i>意见反馈管理</a>
                </li>

                <!--一级主菜单  系统管理-->
                <li class="nav-item nav-dropdown" routerLinkActive="open" appNavDropdown
                    *ngIf="checkPermissions('operate-user')">
                    <a class="nav-link nav-dropdown-toggle" href="#" appNavDropdownToggle><i class="icon-settings"></i>系统管理</a>
                    <ul class="nav-dropdown-items">
                        <li class="nav-item">
                            <a class="nav-link nav-padding-left" routerLinkActive="active"
                               [routerLink]="['/operate-user/index']"><i class="icon-speedometer"></i>运营人员管理</a>
                        </li>

                        <!--<li class="nav-item nav-dropdown">-->
                            <!--<a class="nav-link nav-padding-left" routerLinkActive="active"-->
                               <!--[routerLink]="['/role/roleList']"><i class="icon-puzzle"></i>角色管理</a>-->
                        <!--</li>-->
                    </ul>
                </li>
                <!--一级主菜单  修改密码-->
                <li class="nav-item" *ngIf="checkPermissions('passwordmodify')">
                    <a class="nav-link" routerLinkActive="active" [routerLink]="['/passwordmodify/index']"><i
                            class="icon-speedometer"></i>修改密码</a>
                </li>
                <!--主要导航结尾-->
            </ul>
        </nav>
    </div>

    <!-- Muserstent -->
    <main class="main">

        <!-- Breadcrumb -->
        <ol class="breadcrumb Noprint">
            <app-breadcrumbs></app-breadcrumbs>
            <!-- Breadcrumb Menu-->
            <!--<li class="breadcrumb-menu d-md-down-none">-->
            <!--<div class="btn-group" role="group" aria-label="Button group with nested dropdown">-->
            <!--<a class="btn btn-secondary" href="#"><i class="icon-speech"></i></a>-->
            <!--<a class="btn btn-secondary" [routerLink]="['/dashboard']"><i class="icon-graph"></i> &nbsp;Dashboard</a>-->
            <!--<a class="btn btn-secondary" href="#"><i class="icon-settings"></i> &nbsp;Settings</a>-->
            <!--</div>-->
            <!--</li>-->
        </ol>

        <div class="container-fluid">
            <router-outlet></router-outlet>
        </div><!-- /.conainer-fluid -->
    </main>

    <!--
    <aside class="aside-menu">
      <tabset>
        <tab>
          <ng-template tabHeading><i class="icon-list"></i></ng-template>
          <div class="callout m-0 py-2 text-muted text-center bg-faded text-uppercase">
            <small><b>Today</b></small>
          </div>
          <hr class="transparent mx-3 my-0">
          <div class="callout callout-warning m-0 py-3">
            <div class="avatar float-right">
              <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
            </div>
            <div>Meeting with <strong>Lucas</strong></div>
            <small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 1 - 3pm</small>
            <small class="text-muted"><i class="icon-location-pin"></i>&nbsp; Palo Alto, CA </small>
          </div>
          <hr class="mx-3 my-0">
          <div class="callout callout-info m-0 py-3">
            <div class="avatar float-right">
              <img src="assets/img/avatars/4.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
            </div>
            <div>Skype with <strong>Megan</strong></div>
            <small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 4 - 5pm</small>
            <small class="text-muted"><i class="icon-social-skype"></i>&nbsp; On-line </small>
          </div>
          <hr class="transparent mx-3 my-0">
          <div class="callout m-0 py-2 text-muted text-center bg-faded text-uppercase">
            <small><b>Tomorrow</b></small>
          </div>
          <hr class="transparent mx-3 my-0">
          <div class="callout callout-danger m-0 py-3">
            <div>New UI Project - <strong>deadline</strong></div>
            <small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 10 - 11pm</small>
            <small class="text-muted"><i class="icon-home"></i>&nbsp; creativeLabs HQ </small>
            <div class="avatars-stack mt-2">
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/2.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/3.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/4.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/5.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
            </div>
          </div>
          <hr class="mx-3 my-0">
          <div class="callout callout-success m-0 py-3">
            <div><strong>#10 Startups.Garden</strong> Meetup</div>
            <small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 1 - 3pm</small>
            <small class="text-muted"><i class="icon-location-pin"></i>&nbsp; Palo Alto, CA </small>
          </div>
          <hr class="mx-3 my-0">
          <div class="callout callout-primary m-0 py-3">
            <div><strong>Team meeting</strong></div>
            <small class="text-muted mr-3"><i class="icon-calendar"></i>&nbsp; 4 - 6pm</small>
            <small class="text-muted"><i class="icon-home"></i>&nbsp; creativeLabs HQ </small>
            <div class="avatars-stack mt-2">
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/2.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/3.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/4.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/5.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/6.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
              <div class="avatar avatar-xs">
                <img src="assets/img/avatars/8.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
              </div>
            </div>
          </div>
          <hr class="mx-3 my-0">
        </tab>
        <tab>
          <ng-template tabHeading><i class="icon-speech"></i></ng-template>
          <div class="p-3">
            <div class="message">
              <div class="py-3 pb-5 mr-3 float-left">
                <div class="avatar">
                  <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
                  <span class="avatar-status badge-success"></span>
                </div>
              </div>
              <div>
                <small class="text-muted">Lukasz Holeczek</small>
                <small class="text-muted float-right mt-1">1:52 PM</small>
              </div>
              <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
              <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
            </div>
            <hr>
            <div class="message">
              <div class="py-3 pb-5 mr-3 float-left">
                <div class="avatar">
                  <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
                  <span class="avatar-status badge-success"></span>
                </div>
              </div>
              <div>
                <small class="text-muted">Lukasz Holeczek</small>
                <small class="text-muted float-right mt-1">1:52 PM</small>
              </div>
              <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
              <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
            </div>
            <hr>
            <div class="message">
              <div class="py-3 pb-5 mr-3 float-left">
                <div class="avatar">
                  <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
                  <span class="avatar-status badge-success"></span>
                </div>
              </div>
              <div>
                <small class="text-muted">Lukasz Holeczek</small>
                <small class="text-muted float-right mt-1">1:52 PM</small>
              </div>
              <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
              <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
            </div>
            <hr>
            <div class="message">
              <div class="py-3 pb-5 mr-3 float-left">
                <div class="avatar">
                  <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
                  <span class="avatar-status badge-success"></span>
                </div>
              </div>
              <div>
                <small class="text-muted">Lukasz Holeczek</small>
                <small class="text-muted float-right mt-1">1:52 PM</small>
              </div>
              <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
              <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
            </div>
            <hr>
            <div class="message">
              <div class="py-3 pb-5 mr-3 float-left">
                <div class="avatar">
                  <img src="assets/img/avatars/7.jpg" class="img-avatar" alt="admin@bootstrapmaster.com">
                  <span class="avatar-status badge-success"></span>
                </div>
              </div>
              <div>
                <small class="text-muted">Lukasz Holeczek</small>
                <small class="text-muted float-right mt-1">1:52 PM</small>
              </div>
              <div class="text-truncate font-weight-bold">Lorem ipsum dolor sit amet</div>
              <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt...</small>
            </div>
          </div>
        </tab>
        <tab>
          <ng-template tabHeading><i class="icon-settings"></i></ng-template>
          <div class="p-3">
            <h6>Settings</h6>

            <div class="aside-options">
              <div class="clearfix mt-4">
                <small><b>Option 1</b></small>
                <label class="switch switch-text switch-pill switch-success switch-sm float-right">
                  <input type="checkbox" class="switch-input" checked>
                  <span class="switch-label" data-on="On" data-off="Off"></span>
                  <span class="switch-handle"></span>
                </label>
              </div>
              <div>
                <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
              </div>
            </div>

            <div class="aside-options">
              <div class="clearfix mt-3">
                <small><b>Option 2</b></small>
                <label class="switch switch-text switch-pill switch-success switch-sm float-right">
                  <input type="checkbox" class="switch-input">
                  <span class="switch-label" data-on="On" data-off="Off"></span>
                  <span class="switch-handle"></span>
                </label>
              </div>
              <div>
                <small class="text-muted">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</small>
              </div>
            </div>

            <div class="aside-options">
              <div class="clearfix mt-3">
                <small><b>Option 3</b></small>
                <label class="switch switch-text switch-pill switch-success switch-sm float-right">
                  <input type="checkbox" class="switch-input">
                  <span class="switch-label" data-on="On" data-off="Off"></span>
                  <span class="switch-handle"></span>
                </label>
              </div>
            </div>

            <div class="aside-options">
              <div class="clearfix mt-3">
                <small><b>Option 4</b></small>
                <label class="switch switch-text switch-pill switch-success switch-sm float-right">
                  <input type="checkbox" class="switch-input" checked>
                  <span class="switch-label" data-on="On" data-off="Off"></span>
                  <span class="switch-handle"></span>
                </label>
              </div>
            </div>

            <hr>
            <h6>System Utilization</h6>

            <div class="text-uppercase mb-1 mt-4"><small><b>CPU Usage</b></small></div>
            <div class="progress progress-xs">
              <div class="progress-bar bg-info" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
            </div>
            <small class="text-muted">348 Processes. 1/4 Cores.</small>

            <div class="text-uppercase mb-1 mt-2"><small><b>Memory Usage</b></small></div>
            <div class="progress progress-xs">
              <div class="progress-bar bg-warning" role="progressbar" style="width: 70%" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
            </div>
            <small class="text-muted">11444GB/16384MB</small>

            <div class="text-uppercase mb-1 mt-2"><small><b>SSD 1 Usage</b></small></div>
            <div class="progress progress-xs">
              <div class="progress-bar bg-danger" role="progressbar" style="width: 95%" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100"></div>
            </div>
            <small class="text-muted">243GB/256GB</small>

            <div class="text-uppercase mb-1 mt-2"><small><b>SSD 2 Usage</b></small></div>
            <div class="progress progress-xs">
              <div class="progress-bar bg-success" role="progressbar" style="width: 10%" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100"></div>
            </div>
            <small class="text-muted">25GB/256GB</small>
          </div>
        </tab>
      </tabset>
    </aside>
    -->

</div>

<!--<footer class="app-footer">-->
<!--<a href="http://coreui.io">CoreUI</a> &copy; 2017 creativeLabs.-->
<!--<span class="float-right">Powered by <a href="http://coreui.io">CoreUI</a></span>-->
<!--</footer>-->
